package com.victualler.core.config.permission.service;

import com.victualler.core.base.service.BaseService;
import com.victualler.core.config.permission.dto.UserDto;
import com.victualler.core.config.permission.entity.UserInfoDao;
import com.victualler.core.config.permission.repository.UserInfoQueryRepository;
import com.victualler.core.config.permission.repository.UserInfoRepository;


/**
 * @author: Guoshichang
 * @discription:
 */
public interface UserInfoService extends BaseService<UserInfoDao, UserInfoRepository,UserInfoQueryRepository>{
    /**
     * @author Guoshichang   
     * @since 19:04 on 2018/7/5.
     * @param userId 用户id
     * @Function  获取用户id
     */
    public UserInfoDao  getByUserId(String userId);


    /**
     * @author Guoshichang
     * @since 19:04 on 2018/7/5.
     * @param userId 用户id
     * @Function 是否存在用户
     */
    public boolean isHaveUser(String userId);

    /**
     * @author Guoshichang   
     * @since 19:15 on 2018/7/6.
     * @param userId
     * @Function  根据用户账号获取对应的用户权限等信息大对象
     */
    public UserDto getUserDtoByUserId(String userId);


}
